package com.maiji.cloud.response.login;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.google.common.collect.Lists;
import com.maiji.cloud.entities.login.WeightChangeLog;
import com.maiji.cloud.entities.shopingmall.CapitalMain;
import com.maiji.cloud.response.shopingmall.GoodsResData;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.Date;
import java.util.List;

@NoArgsConstructor
@Data
@Accessors(chain = true)
public class UserInfoResData {

    @ApiModelProperty(value = "ID")
    private String uuId;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String headUrl;

    @ApiModelProperty(value = "0:女，1:男")
    private Integer sex;

    @ApiModelProperty(value = "出生日期")
    private Date birth;

    @ApiModelProperty(value = "注册时间")
    private Date regDate;

    @ApiModelProperty(value = "身高")
    private String height;

    @ApiModelProperty(value = "原始体重")
    private String weight;

    @ApiModelProperty(value = "当前体重")
    private String currentWeight;

    @ApiModelProperty(value = "目标体重")
    private String targetWeight;

    @ApiModelProperty(value = "是否用过麦吉减肥法0:否，1：是")
    private Integer isUse;

    @ApiModelProperty(value = "阶段")
    private Integer stage;

    @ApiModelProperty(value = "天数")
    private Integer day;

    @ApiModelProperty(value = "体脂率")
    private String bodyFatRate;

    @ApiModelProperty("是否关注")
    private Boolean isFollow;

    @ApiModelProperty("用户账户资金信息")
    private CapitalMain capitalMain;

    @ApiModelProperty("用户注册信息")
    private AppUserResData appUser;

    @ApiModelProperty("用户体重记录")
    private List<WeightChangeLog> wcls = Lists.newArrayList();
    
    @JsonIgnore
    public UserInfoResData getThis() {
        return this;
    }

    @ApiModelProperty(value = "用户注册手机号")
    private String tel;

}
